﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using V5_Model;
using V5_BLL;
using System.Data;

namespace V5_EShop.Controls
{
    public partial class getDropClassIDList : BasicControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt = new BLLProductClass().GetDropDownList("", 0);
            if (dt != null && dt.Rows.Count > 0)
            {
                foreach (DataRow row in dt.Rows)
                {
                    Response.Write(@"<option value=""" + row["ClassID"] + @""">" + row["ClassName"] + @"</option>");
                }
            }
        }
    }
}